package Cain.fb.event 
{
	import flash.events.Event;
	
	/**
	 * 發送訊息事件
	 * @author cain in liontravel 2010
	 */
	public class PublishStreamEvent extends Event 
	{
		/**
		 * 發文完成事件
		 */
		static public const RESPONSE:String = "onRESPONSE";
		/**
		 * 發文是否成功
		 */
		public var success:Boolean;
		/**
		 * 發文序號
		 */
		public var id:String;
		/**
		 * 錯誤訊息
		 */
		public var error:Object;
		/**
		 * 發文事件
		 * @param	type
		 * @param	bubbles
		 * @param	cancelable
		 */
		public function PublishStreamEvent(type:String = "onRESPONSE", bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			super(type, bubbles, cancelable);
		} 
		
		public override function clone():Event 
		{ 
			return new PublishStreamEvent(type, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("PublishStreamEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}		
	}
	
}